<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>简易商城</title>
    <!-- Bootstrap -->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" rel="stylesheet">
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link href="${ctxPath}/css/HFer.css" rel="stylesheet">
 	 <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    
	<link href="${ctxPath}/css/style.css" rel="stylesheet" media="screen">
	<script src="${ctxPath}/js/alertUtil.js"></script>
	

  </head>
  
  
  
<body> 
	<nav class="navbar navbar-default">
	  <div class="container-fluid" >
	    
	    <div class="navbar-header">
	      <a class="navbar-brand" href="${ctxPath}/home">简易手机商城</a>
	     	<img class="navbar-brand"  alt="双11" src="/sc/img/sjtb.jpg" width="46px" height="50px">
	    </div>
	
	    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
	    	<ul class="nav navbar-nav navbar-right">
			    <%
			    	if(null==user! || isEmpty(user!)){
			    %>
				     <li><a href="${ctxPath}/user">请您登陆</a></li>
				     <li><a href="${ctxPath}/user/registerIn">免费注册</a></li>
			    <%
			    	}else{
			    %>	
		       	
		       	<li><a href="">你好:${user.nickName!}</a></li>
		       	<li><a href="/sc/order/my">我的订单</a></li>
		      	<li class="dropdown">
		          <a href="${ctxPath}/user/message?name=${user.name}" class="dropdown-toggle" >个人中心 </a>
		          <ul class="dropdown-menu" >
		            <li><a href="#">修改个人信息</a></li>
		            <li role="separator" class="divider"></li>
		            <li><a href="javascript:void(0)" id="click">退出登陆</a></li>
		          </ul>
		        </li>
		    <%
		    	}
		    %>
	     </ul>
	    </div>
	    
	    <script type="text/javascript">
		    $("#click").click(function (){
		        var msg = "您确定要退出登陆吗?";
		        if (confirm(msg)==true){
		        	window.location.href="/sc/user/remove";
		        }else{
		        	return false;
		        } 
		    });
	    </script>	
	  </div>
	</nav>